<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of userSekolahFormclass
 *
 * @author destiya
 */
class userSekolahForm extends BaseuserForm {
    public function configure() {
        $this->useFields(array('id', 'id_sekolah'));

        $this->setWidget('id', new sfWidgetFormInputHidden());

        $this->widgetSchema['id_sekolah'] = new sfWidgetFormChoice(array(
            'choices' => Doctrine_Core::getTable('sekolah')->getSekolahList(),
            'expanded'=> false,
            'multiple'=>false,
            'label'=>'Sekolah'
        ));

        $this->validatorSchema['id_sekolah'] = new sfValidatorAnd(array(
            $this->validatorSchema['id_sekolah']
        ));
    }
}
?>
